<?php

namespace App\ModelFilters;


class CzSpecFilter extends BaseFilter
{
    /**
    * Related Models that have ModelFilters as well as the method on the ModelFilter
    * As [relationMethod => [input_key1, input_key2]].
    *
    * @var array
    */
    public $relations = [
    ];

    public function id($value){
        return $this->where('id', $value);
    }

    public function product_id($value){
        return $this->where('product_id', $value);
    }
    public function product_ids($value){
        return $this->whereIn('product_id', $value);
    }
    public function face_value($value){
        return $this->where('face_value', $value);
    }
    public function status($value){
        return $this->where('status', $value);
    }
    public function is_cache($value){
        return $this->where('is_cache', $value);
    }

    public function isp($value){
        return $this->related('product', 'isp', '=', $value);
    }

    public function type($value){
        return $this->related('product', 'type', '=', $value);
    }

    public function province_id($value){
        return $this->related('product', 'province_id', '=', $value);

    }

}
